import requset from "../utils/request"

// 新增事项清单
 export const addTuanItemAPI = (data: any) => {
  return requset('tuan/item/add', 'POST', data)
}
// 查询事项清单列表
export const getTuanItemListAPI = (data: any) => {
  return requset('tuan/item/list', 'GET', data)
}
// 编辑事项清单
export const updateTuanItemAPI = (data: any) => {
  return requset('tuan/item/update', 'POST', data)
}
// 修改事项清单发布状态
export const updateTuanItemStatusAPI = (data: any) => {
  return requset('tuan/item/updateStatus', 'POST', data)
}
// 删除事项清单
export const deleteTuanItemAPI = (data: any) => {
  return requset(`tuan/item/delete/${data.id}`, 'GET', data)
}
// 新增团队风采
export const addTuanTeamAPI = (data: any) => {
  return requset('tuan/team/add', 'POST', data)
}
// 查询团队风采列表
export const getTuanTeamListAPI = (data: any) => {
  return requset('tuan/team/list', 'GET', data)
}
// 编辑团队风采
export const updateTuanTeamAPI = (data: any) => {
  return requset('tuan/team/update', 'POST', data)
}
// 删除团队风采
export const deleteTuanTeamAPI = (data: any) => {
  return requset(`tuan/team/delete/${data.id}`, 'GET', data)
}